import { NewsListApi } from '@/api/api'
const newsList = {
    namespaced:true,
    state: {
        bannerText: {},
        newsListInfo: {},
        newsList: [],
    },
    mutations: {

    },
    actions: {
        AnewsListApi({ state }) {
            NewsListApi.newsList().then((res) => {
                const { newsListInfo, newsList, bannerText } = res.data;
                state.newsListInfo = newsListInfo;
                state.newsList = newsList;
                state.bannerText = bannerText;
            });
        }
    }

}
export default newsList